package com.workerhelping.result;

import lombok.Data;
import lombok.Getter;

@Getter
public enum ResultCodeEnum {

    SUCCESS(200, "成功"),
    FAIL(201, "失败"),

    LOGIN_FAIL(202, "账户名或密码错误！"),
    REGISTER_CODE_SEND_ERROR(203, "验证码发送失败！"),
    REGISTER_CODE_ERROR(204, "验证码错误！"),
    REGISTER_PHONENUM_NOT_UNIQUE(205, "此账号已被使用！"),

    RECORD_IS_EMPTY(208, "您还没有提交任何档案！"),
    RECORD_ALREADY_EXIST(209, "您的档案已存在！"),
    UPLOAD_FAIL(206, "上传失败！"),
    FILE_IS_EMPTY(207, "文件不能为空！"),
    RECORD_NOT_AUDITED(300, "您的档案还未审核，请耐心等待！"),
    RECORD_ALREADY_LOGOUT(301, "您的档案已被注销！"),

    INDEX_UPDATE_FAIL(210, "数据已成功更新，但页面刷新可能存在延迟！"),
    INDEX_DELETE_FAIL(211, "数据已成功删除，但页面刷新可能存在延迟！"),

    SEARCH_FAIL(212, "查询失败，请稍后重试！"),
    APPROVE_FAIL(213,"该档案暂时无法批准，请稍后再试！"),
    CANCEL_FAIL(214,"该档案暂时无法拒绝，请稍后再试！"),
    REJECT_FAIL(215,"该档案暂时无法注销，请稍后再试！"),
    DELETE_FAIL(216,"该档案暂时无法删除，请稍后再试！"),
    CONFIRM_IS_EMPTY(217, "当前没有消息！"),
    DATA_IS_EMPTY(218, "暂无数据！"),
    SAVE_FAIL_COMMON(219, "保存失败!"),
    DELEYE_FAIL_COMMON(220, "删除失败！"),
    CONDITION_IS_EMPTY(221,"请至少填写一个查询条件！"),
    OLD_PASSWORD_ERROR(222,"原密码输入错误！"),
    PHONENUMBER_ERROR(223,"手机号错误！")
    ;

    private final Integer code;
    private final String message;

    private ResultCodeEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
